import request from '@/config/axios'

// 获取企业管理列表
export const getTenantListApi = (params:any) => {
  return request.get({ url: '/api/system/tenant/list',params})
}
// 新增企业
export const addTenantApi = (data:any) => {
  return request.post({ url: '/api/system/tenant',data:data})
}
// 修改企业
export const editTenantApi = (data:any) => {
  return request.put({ url: '/api/system/tenant',data:data})
}
// 删除企业
export const deteleTenantApi = (id:any) => {
  return request.delete({ url: `/api/system/tenant/${id}`})
}